package com.fish.service.impl.passport;

import java.util.List;
import java.util.Map;

import com.fish.common.constant.QueryPage;
import com.fish.passport.dao.PassProviderDAO;
import com.fish.passport.po.PassProvider;
import com.fish.product.po.PerformTarget;
import com.fish.service.passport.PassProviderService;

/**
 * @author ShiHui
 */
public class PassProviderServiceImpl implements PassProviderService {
	private PassProviderDAO passProviderDAO;

	public void setPassProviderDAO(PassProviderDAO providerDAO) {
		this.passProviderDAO = providerDAO;
	}

	public void addPassProvider(PassProvider passProvider) {
		passProviderDAO.addPassProvider(passProvider);
	}

	public void deletePassProvider(Integer providerId) {
		passProviderDAO.deletePassProvider(providerId);
	}

	public List<PassProvider> queryPassProviders(String providerName ) {
		return passProviderDAO.queryProviderByParams(providerName);
	}
	public PassProvider getPassProviderById(Integer providerId) {
		return passProviderDAO.getPassProviderById(providerId);
	}
	public void updatePassProvider(PassProvider passProvider) {
		passProviderDAO.updatePassProvider(passProvider);
	}
	
	@Override
	public Long queryPassProviderCountByObject(PassProvider passProvider) {
		return this.passProviderDAO.queryPassProviderCountByObject(passProvider);
	}

	@Override
	public List<PassProvider> queryPassProviderByObject(PassProvider passProvider, QueryPage queryPage) {
		return this.passProviderDAO.queryPassProviderObject(passProvider,queryPage);
	}
}
